home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 67
/
067.d81
/
hbxmas pt2
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
12KB
|
259 lines
100 rem----hbxmas pt2----
110 onagoto150,160,170
120 goto190
130 rem....load....
140 na$=na$+"1":a=1:loadna$,8,1
150 a=a+1:na$=left$(na$,len(na$)-1):na$=na$+"2":loadna$,8,1
160 a=a+1:na$=left$(na$,len(na$)-1):na$=na$+"3":poke53265,11:loadna$,8,1
170 a=0:goto980
180 rem...define variables,etc...
190 bc=53280:sc=53281:v=53248:np=0:pokebc,6
200 rem hi-res sprite pointers:
210 s0=24568:s1=24569:s2=24570:s3=24571:s4=24572:s5=24573:s6=24574:s7=24575
220 rem lo-res sprite pointers:
230 p0=2040:p1=2041:p2=2042:p3=2043:p4=2044:p5=2045:p6=2046:p7=2047
240 rem....load new sprite data....
250 fori=0to127:readj:poke23360+i,j:next
260 rem....top of man leaning over
270 data0,0,0,0,0,0,0,0
280 data0,0,0,0,0,3,192,0
290 data15,240,0,63,252,0,63,252
300 data0,63,252,0,171,240,0,170
310 data160,2,170,168,2,170,168,2
320 data170,170,2,170,170,2,170,138
330 data2,170,138,2,170,138,2,170
340 data138,2,170,138,2,170,138,0
350 rem....bottom of man leaning over
360 data3,255,192,15,255,192,15,255
370 data192,15,255,192,15,255,192,15
380 data255,192,15,255,192,15,255,192
390 data15,255,192,15,207,192,15,207
400 data192,15,207,192,15,207,192,15
410 data207,192,15,207,192,15,207,192
420 data15,207,192,15,207,192,15,207
430 data192,15,207,192,15,207,192,0
440 rem....top of woman facing left
450 fori=0to127:readj:poke22784+i,j:poke15552+i,j:next
460 data0,60,0,3,255,0,3,255
470 data192,0,87,192,0,215,192,0
480 data87,240,1,85,0,0,84,0
490 data0,84,0,0,16,0,0,168
500 data0,2,170,0,2,170,0,10
510 data170,0,10,170,0,10,170,0
520 data1,170,0,1,170,0,1,168
530 data0,1,168,0,1,168,0,0
540 data1,168,0,1,170,0,2,170
550 data0,2,170,0,2,170,0,2
560 data170,0,2,170,0,2,170,0
570 data2,170,0,10,170,0,10,170
580 data128,0,84,0,0,84,0,0
590 data84,0,0,84,0,0,84,0
600 data0,84,0,0,84,0,0,84
610 data0,3,252,0,12,204,0,0
620 fori=0to127:readj:poke22656+i,j:poke15744+i,j:next
630 rem....top of man standing
640 data3,255,0,15,255,192,63,87
650 data240,53,85,112,53,85,112,20
660 data84,80,21,85,80,21,69,80
670 data5,85,64,5,253,64,3,207
680 data0,0,84,0,10,154,128,42
690 data170,160,42,170,160,22,138,80
700 data22,170,80,22,170,80,22,170
710 data80,22,138,80,22,170,80,0
720 rem....bottom of man standing
730 data15,255,192,15,255,192,15,255
740 data192,15,255,192,15,255,192,15
750 data255,192,15,255,192,15,255,192
760 data15,255,192,15,207,192,15,207
770 data192,15,207,192,15,207,192,15
780 data207,192,15,207,192,15,207,192
790 data15,207,192,15,207,192,15,207
800 data192,15,207,192,15,207,192,0
810 rem....snowfall....
820 fori=0to63:readj:poke22592+i,j:poke15680+i,j:next
830 data128,128,128,0,0,0,0,0,0,0,0,0,16,16,16,0,0,0,0,0,0
840 data128,128,128,0,0,0,0,0,0,0,0,0,16,16,16,0,0,0,0,0,0
850 data1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
860 rem....boy standing....
870 fori=0to63:readj:poke15872+i,j:next
880 data0,63,0,0,245,0,0,215
890 data0,0,213,64,0,215,0,0
900 data5,0,0,42,0,0,170,128
910 data0,170,128,0,170,128,0,170
920 data128,0,170,128,0,31,0,0
930 data31,0,0,63,0,0,63,0
940 data0,63,0,0,63,0,0,63
950 data0,0,51,0,0,21,64,0
960 :
970 goto1150
980 onnpgoto1270
990 :
1110 :
1120 rem...fade-out...
1130 fori=0to7:poke843,0+i:poke844,96:sys830:next:return
1140 :
1150 rem....main program....
1160 pokebc,6:pokesc,6:poke53272,23
1170 gosub63000:print" [212]he children's father was a
1180 [153]"trained medical assistant, so he
1190 print"checked him for injuries."
1200 print""chr$(34)"[201] don't believe he is badly"
1210 print"hurt,"chr$(34)" said the father. "chr$(34)"[200]e must"
1220 print"have landed flat on his back and"
1230 print"the soft ground cushioned the"
1235 print"fall."chr$(34)
1240 d=20:gosub5000
1250 rem....living room scene....
1260 goto10000:np=1
1270 rem....set up sprites....
1280 fori=0to14step2:pokev+i,0:next
1290 pokes0,108:pokev+39,8:pokev,48:pokev+1,159:rem huggy bear
1300 pokev+28,254:pokev+37,7:pokev+38,9:rem set colors
1310 pokes1,109:pokev+40,4:pokev+2,105:pokev+3,165:rem man top
1320 pokes2,110:pokev+41,9:pokev+4,107:pokev+5,186:rem man bottom
1330 pokes3,100:pokev+42,10:pokev+6,158:pokev+7,165:rem woman top
1340 pokes4,101:pokev+43,10:pokev+8,158:pokev+9,186:rem woman bottom
1350 pokes5,87:pokev+44,5:pokev+10,205:pokev+11,160:rem girl top
1360 pokes6,86:pokev+45,6:pokev+12,205:pokev+13,181:rem girl bottom
1370 pokes7,91:pokev+46,4:pokev+14,125:pokev+15,184:rem little boy
1380 pokev+21,255
1390 pokesc,14:poke53265,27:poke251,128:poke252,96:poke253,92:sys51456:sys51459
1400 d=5:gosub5000
1410 :
1420 rem....text sequences....
1430 pokev+21,0:sys878:poke53265,11:pokesc,6:sys51459:print"[147]":poke53272,23
1440 pokep5,242:pokev+10,255:pokev+11,100:pokev+23,32:pokev+29,32:pokev+21,32
1450 gosub63000
1455 print" "chr$(34)"[212]his little bear came"
1457 print"running to our house and"
1460 print"told me about the accident."
1462 print"[212]hen he took me to a place in"
1470 print"the woods where [201] found[202]immy."chr$(34)
1480 poke53265,27:d=20:gosub5000
1490 pokev+21,0:print"[147]":pokep5,246:pokev+44,4:pokev+21,32
1500 gosub63000:print" "chr$(34)"[215]ell, little [194]ear,"chr$(34)"
1510 [153]"said the children's"
1520 [153]"father, "[199](34)"we certainly are"
1530 [153]"grateful to you for your help!"
1535 [153]"(NULL)hat is your name and where do"
1540 [153]"you live?"[199](34):d[178]20:[141]5000
1550 [151]v[170]21,0:[153]"load":[151]p0,254:[151]v[170]39,8:[151]v,50:[151]v[170]1,100
1560 [151]v[170]23,1:[151]v[170]29,1:[151]v[170]21,1
1570 [141]63000:[153]""[163]13)[199](34)"(NULL)y name is left$(NULL)chr$chr$(NULL) peekvalatn(NULL),"[199](34)
1580 [153][163]13)"said the little bear,":[153][163]13)"and he told how he"
1590 [153][163]13)"had left the toy store":[153][163]13)"to search for a home
1600 print"for himself before [195]hristmas."
1610 d=20:gosub5000
1620 pokev+21,0:print"[147]":pokev+44,5
1630 pokep5,242:pokev+10,255:pokev+11,65:pokev+23,32:pokev+29,32:pokev+21,32
1640 gosub63000:print" "chr$(34)"[207]h father, can he stay"
1645 print"here with us? [200]e can be a part"
1650 print"of our family!"chr$(34):d=10:gosub5000
1660 print" [194]y this time the little boy"
1670 print"had awakened and was standing."
1675 d=5:gosub5000
1680 pokep7,248:pokev+46,4:pokev+14,50:pokev+15,190:pokev+23,160:pokev+29,160
1690 pokev+28,160:pokev+21,160
1700 print""chr$(34)"[208]lease father. [215]e'll take real"
1710 printtab(13)"good care of him and he"
1720 printtab(13)"can be our playmate."chr$(34)
1730 d=10:gosub5000
1740 pokev+21,0:print"[147]"
1750 pokep3,243:pokev+42,10:pokev+6,255:pokev+7,80:pokev+23,8:pokev+29,8
1760 pokev+28,8:pokev+21,8
1770 gosub63000:print" "chr$(34)"[215]ell, [201] think it"
1771 print"would be nice to"
1772 print"have a [212]eddy [194]ear"
1780 print"around the house."
1790 print"[200]e would be good company. [200]ow"
1795 print"about it, [200]uggy [194]ear, will you"
1800 print"live with us?"chr$(34)" asked the"
1805 print"children's mother."
1810 d=20:gosub5000
1820 pokev+21,0:pokev+23,0:pokev+29,0:pokev+28,0:print"[147]"
1830 pokep3,255:pokev+42,8:pokev+6,160:pokev+7,200:pokev+21,8
1835 gosub63000
1840 print" "chr$(34)"[199]osh!"chr$(34)" said [200]uggy. "chr$(34)"[212]hat's"
1850 print"the nicest thing that could"
1860 print"happen to me. [201] sure would like"
1865 print"to live with you."chr$(34)
1870 d=10:gosub5000
1880 print" [212]he boy and girl were so happy"
1890 print"to have the bear live with them"
1895 print"that they gave him a great big"
1897 print"bear hug."
1900 d=5:gosub5000
1910 pokep2,248:pokev+41,4:pokev+4,150:pokev+5,200
1920 pokep0,242:pokev+39,5:pokev,172:pokev+1,192
1930 pokev+21,12:forx=100to150:pokev+4,x:next
1940 pokep0,242:pokev+39,5:pokev,255:pokev+1,192
1950 pokep1,241:pokev+40,14:pokev+2,255:pokev+3,213:pokev+28,7:pokev+21,15
1960 forx=255to169step-1:pokev,x:pokev+2,x:next
1970 d=10:gosub5000:pokev+21,8
1980 gosub63000:print" [193]fter everyone had gone to bed
1990 [153]"left$uggy peekear sat under the"
2000 [153]"lenhristmas